using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Raster._RasterProcessing
{
    /// <summary>
    /// <para>Compute Pansharpen Weights</para>
    /// <para>Calculates an optimal set of pan sharpened weights for new or custom sensor data.</para>
    /// <para>为新的或自定义的传感器数据计算一组最佳的平移锐化权重。</para>
    /// </summary>    
    [DisplayName("Compute Pansharpen Weights")]
    public class ComputePansharpenWeights : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ComputePansharpenWeights()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_raster">
        /// <para>Input Raster</para>
        /// <para>A multispectral raster that has a panchromatic band.</para>
        /// <para>具有全色波段的多光谱栅格。</para>
        /// </param>
        /// <param name="_in_panchromatic_image">
        /// <para>Panchromatic Image</para>
        /// <para>The panchromatic band associated with the multispectral raster.</para>
        /// <para>与多光谱栅格关联的全色波段。</para>
        /// </param>
        public ComputePansharpenWeights(object _in_raster, object _in_panchromatic_image)
        {
            this._in_raster = _in_raster;
            this._in_panchromatic_image = _in_panchromatic_image;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Compute Pansharpen Weights";

        public override string CallName => "management.ComputePansharpenWeights";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_raster, _in_panchromatic_image, _band_indexes, _out_string];

        /// <summary>
        /// <para>Input Raster</para>
        /// <para>A multispectral raster that has a panchromatic band.</para>
        /// <para>具有全色波段的多光谱栅格。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_raster { get; set; }


        /// <summary>
        /// <para>Panchromatic Image</para>
        /// <para>The panchromatic band associated with the multispectral raster.</para>
        /// <para>与多光谱栅格关联的全色波段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Panchromatic Image")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_panchromatic_image { get; set; }


        /// <summary>
        /// <para>Band Indexes</para>
        /// <para><xdoc>
        ///   <para>The band order for the pan sharpened weights.</para>
        ///   <para>If a raster product is used as the Input Raster, the band order within the raster product template will be used.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>平底锅的带顺序磨砝码。</para>
        ///   <para>如果将栅格产品用作输入栅格，则将使用栅格产品模板中的波段顺序。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Band Indexes")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _band_indexes { get; set; } = null;


        /// <summary>
        /// <para>Pan-sharpened Weights</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Pan-sharpened Weights")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_string { get; set; }


        public ComputePansharpenWeights SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}